home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / reuse.lha / reuse / c / Memory.h < prev    next >
C/C++ Source or Header  |  1992-08-18  |  1KB  |  52 lines

  1. # ifndef yyMemory
  2. # define yyMemory
  3.  
  4. /* $Id: Memory.h,v 1.5 1992/08/07 14:36:51 grosch rel $ */
  5.  
  6. /* $Log: Memory.h,v $
  7.  * Revision 1.5  1992/08/07  14:36:51  grosch
  8.  * added comments
  9.  *
  10.  * Revision 1.4  1991/11/21  14:28:16  grosch
  11.  * new version of RCS on SPARC
  12.  *
  13.  * Revision 1.3  91/07/17  17:23:14  grosch
  14.  * introduced ARGS trick for ANSI compatibility
  15.  * 
  16.  * Revision 1.2  90/12/14  15:55:53  grosch
  17.  * introduced variable MemoryUsed
  18.  * 
  19.  * Revision 1.1  90/07/04  14:34:00  grosch
  20.  * introduced conditional include
  21.  * 
  22.  * Revision 1.0  88/10/04  11:44:42  grosch
  23.  * Initial revision
  24.  * 
  25.  */
  26.  
  27. /* Ich, Doktor Josef Grosch, Informatiker, Sept. 1987 */
  28.  
  29. # ifdef __STDC__
  30. # define ARGS(parameters)    parameters
  31. # else
  32. # define ARGS(parameters)    ()
  33. # endif
  34.  
  35. extern unsigned long MemoryUsed    ;
  36.             /* Holds the total amount of memory managed by    */
  37.             /* this module.                    */
  38.  
  39. extern void    InitMemory    ();
  40.             /* The memory module is initialized.        */
  41.  
  42. extern char *    Alloc        ARGS((register unsigned long ByteCount));
  43.             /* Returns a pointer to dynamically allocated    */
  44.             /* space of size 'ByteCount' bytes.        */
  45.  
  46. extern void    Free        ARGS((unsigned long ByteCount, char * a));
  47.             /* The dynamically allocated space starting at    */
  48.             /* address 'a' of size 'ByteCount' bytes is    */
  49.             /* released.                    */
  50.  
  51. # endif
  52.